<div class="newpost">
    <a href="{:U('wenda/Index/question',array('type'=>0))}" <php>if($_GET['type']==0){echo "class='quealltab  onactive'";}else{echo "class='quealltab'";}</php>>最新</a>
    <!--  <a href="/wenda/0/2" class="quealltab " >最新回答</a> -->
    <a href="{:U('wenda/Index/question',array('type'=>1))}"<php>if( $_GET['type']==1){echo "class='quealltab  onactive'";}else{echo "class='quealltab'";}</php>>热门</a>
    <php>if($wdtype!=3){</php>
    <a href="{:U('wenda/Index/question',array('type'=>2))}" <php>if( $_GET['type']==2){echo "class='quealltab  onactive'";}else{echo "class='quealltab'";}</php>>等待回复</a>
    <php>}</php>
</div>